{% extends "base.html" %}

{% block header_text %}Your To-Do list{% endblock %}

{% block body_menu %}
<div class="nav dropmenu-menu">
  <ul class="nav nav-pills">
    <li>
      <a href="{% url 'home'  %}">home</a>
    </li>
    {% for list_ in lists %}
    <li {% if list_.id == list.id %}
        class="active"
        {% endif %} >
      <a href="{% url 'lists:view_list' list_.id %}">{{ list_.id }}</a>
    </li>
    {% endfor %}
  </ul>
</div>
{% endblock body_menu %}


{% block form_action %}{% url 'lists:view_list'  list.id %}{% endblock %}

{% block table %}
<table class="table" id="id_list_table">
  {% for item in list.item_set.all %}
  <tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
  {% endfor %}
</table>
{% endblock %}
